import os
from flask_sqlalchemy import make_url
basedir = os.path.abspath(os.path.dirname(__file__))

class Config:
    SECRET_KEY = "sdkHHKGYITfjlqjluio23uaasdf42903"
    
    @staticmethod
    def init_app(app):
        pass

class TestConfig(Config):
    SECRET_KEY = "sdkfjlasdf%$^%^&asdfadfsqjluioasdf23asdfu42903"
    db_path = os.path.join(os.path.dirname(__file__), 'todolist.db')
    db_uri = 'sqlite:///{}'.format(db_path)  
    SQLALCHEMY_DATABASE_URI = db_uri
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_ECHO = False

config = {
    'default': TestConfig,
    'test': TestConfig
}
